package com.mohunhun.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "消息实体")
public class Message {

    @Schema(description = "消息ID")
    private Long id;

    @Schema(description = "发送者用户ID")
    private Long postUserId;

    @Schema(description = "接收者用户ID")
    private Long receiveUserId;

    @Schema(description = "消息内容")
    private String content;

    @Schema(description = "阅读状态：0-未读，1-已读")
    private Byte state;

    @Schema(description = "删除状态：0-未删除，1-已删除（软删除）")
    private Byte deleteState;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    private User postUser;
}